package com.bainuo.doctor.common.image_support.imghandle.picker;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;

import java.util.List;

/**
 * Created by bainuo on 2017/2/10.
 */

public interface IImagePicker {

    /**
     * 初始化activity 各跳转code
     */
    void setCode(Activity activity, int code);

    /**
     * 从相册选择
     */
    void pickFromAlbum();

    /**
     * 从相机选择
     */
    void pickFromCamera();

    /**
     * 设置图片可选最大数目
     */
    void setMaxPictures(int pics);

    void setSingleMode(boolean singleMode);

    /**
     * activity 回调
     */
    void onActivityResult(int requestCode, int resultCode, Intent data);

    /**
     * 监听图片选择
     */
    void setPickerCompleteListener(Listener listener);

    public interface Listener {
        void onPictureSelected(List<Uri> uris, List<String> paths);
    }
}
